<?php
/**
 * Created by PhpStorm.
 * User: dust2
 * Date: 14-11-21
 * Time: 下午3:40
 */

class UserTableSeeder extends Seeder
{
    public function run()
    {
        DB::table('users')->delete();
        User::insert([
            'username' => 'admin',
            'password' => Hash::make('lv_admin'),
            'email' => 'admin@admin.com',
            'active' => true,
            'realname' => 'admin_realname',
            'sex' => 'M',
            'birthday' => date('Y-m-d'),
            'nickname' => 'admin_nickname',
            'created_at' => time(),
            'updated_at' => time()
        ]);

        User::insert([
            'username' => 'rocky',
            'password' => Hash::make('lv_rocky'),
            'email' => 'rocky@rocky.com',
            'active' => true,
            'realname' => 'rocky_realname',
            'sex' => 'M',
            'birthday' => date('Y-m-d'),
            'nickname' => 'rocky_nickname',
            'created_at' => time(),
            'updated_at' => time()
        ]);

        User::insert([
            'username' => 'dust2',
            'password' => Hash::make('lv_dust2'),
            'email' => 'dust2@dust2.com',
            'active' => true,
            'realname' => 'dust2_realname',
            'sex' => 'M',
            'birthday' => date('Y-m-d'),
            'nickname' => 'dust2_nickname',
            'created_at' => time(),
            'updated_at' => time()
        ]);

    }

} 